Bicartesian squares of nilpotent groups