The structure of the compact planetary nebulae Cn 3-1 and M 3-27 and their extended haloes