Learning of Three Layer Neural Networks Based on Domains of Attraction