Structural, elastic, electronic, and phonon properties of zinc-blende and wurtzite BeO