A matrix method for quasinormal modes: Kerr and Kerr–Sen black holes | Synapse