Calculation of the electronic structure of crystalline and amorphous arsenic