Variable optical attenuator using planar light attenuation scheme based on rotational and translational misalignment