Decoupling of the position and angular errors in laser pointing with a neural network method