The role of secondary resonances in the orbital history of Miranda