An artificial neural network method for solving boundary value problems with arbitrary irregular boundaries