X-rays investigations of the smectic A1 - smectic A2 transition