What did the internal combustion engine replace?