Evaluation of the Spanish regulation on self-consumption photovoltaic installations. A case study based on a rural municipality in Spain