Barcelona's Robert Lewandowski converted a first-half penalty kick to become just the third player to score 100 Champions League goals.