MEPs vote for energy market reform but fail to reject gas