Ab initio calculation of the structural and dynamical properties of the zinc-blende BN and its (110) surface