Spatial variations of the optical galaxy luminosity functions and red sequences in the Coma cluster: clues to its assembly history