Surface modification of mesoporous silicon for nanoelectronics applications