Magnetic phases in La0.66Ba0.34MnO3: effects of temperature and elastic strains