Modified-operator method for the calculation of band diagrams of crystalline materials