Simulations of early universe phase transitions and gravitational waves