Implementation and validation of an approach for the estimation of the magnitude of historical earthquakes in Azores Islands