Photon-assisted resonant Andreev reflections: Yu-Shiba-Rusinov and Majorana states