Thin nanodiamond membranes and their microstructural, optical and photoelectrical properties