Faint surface photometry of the halo of M31