Photoionization of Bose-Einstein condensates