Competing exchanges and spin–phonon coupling in Eu1−xRxMnO3 (R=Y, Lu)