The Pope has been greeted by an enthusiastic crowd of 40,000 as he spoke Spanish and Catalan during a prayer vigil at Barcelona's Olympic Stadium.