Scanning force microscopy for the study of domain structure in ferroelectric thin films