Characterisation of ferroelectric thin films by X-ray diffraction and electron microscopy