A semi–parametric approach in the estimation of the structural risk in environmental applications