A methodological approach for the development and verification of artificial neural networks based on an application to wave–structure interaction processes