Polyoxyalkyleneamine as shale inhibitor in water-based drilling fluids