Combined action of Casimir and electrostatic forces on nanocantilever arrays