Construction of redox- and photo-functional molecular systems on electrode surface for application to molecular devices