Thousands of women should have been given better notice that they must wait longer for their state pension, say two former pensions ministers.