Solitary wave solutions along with Painleve analysis for the Ablowitz–Kaup–Newell–Segur water waves equation