peter the first of portugal got married three times