Carbon and M Stars in Nearby Galaxies: A Preliminary Survey Using a Photometric Technique