Ratzinger is elected as new pope