CCD photometry of Abell clusters. II: Surface photometry of 249 cluster galaxies