Synthetic microbial communities of heterotrophs and phototrophs facilitate sustainable growth