Wavefront and polarization effects in actively tunable thin-film resonators for beam alignment in optical interconnects