Optical study of diamine coupling on carboxyl-functionalized mesoporous silicon