Principles of calculating alignment signals in complex resonant optical interferometers