Electronic structure of FeWO4 and CoWO4 tungstates: First-principles FP-LAPW calculations and X-ray spectroscopy studies