Virtual element method for computational homogenization of composite and heterogeneous materials