An X-ray study of a smectic C and smectic A liquid crystal polyacrylate