The energy and momentum input of supernova explosions in structured and ionized molecular clouds