Electronic structure and magnetism in BeO nanotubes induced by boron, carbon and nitrogen doping, and beryllium and oxygen vacancies inside tube walls