First-order phase transitions by first-principles free-energy calculations: the melting of Al