Design and characteristics of a micromachined variable optical attenuator with a silicon optical wedge