Synthesis of amorphous silicon/magnesia based direct opals with tunable optical properties