Non-Hermitian molecular dynamics simulations of exciton–polaritons in lossy cavities | Synapse