Pope spends night in hospital after operation