X-ray and Raman investigations of two smectic phases of HxBPA