Lattice Anomalies in (La,Sr)2CuO4 Under Epitaxial Strain Probed by Polarized X-Ray Absorption Spectroscopy