Parity inversion and breakdown of shell closure in Be isotopes