Electrodynamics of BaFe2As2 from infrared measurements under pressure