Structural modulation and electronic structural features in the charge ordered state of La0.5Sr1.5MnO4