Nonlinear Effects in Interference of Bose-Einstein Condensates