Effect of electron nonthermality on nonlinear electrostatic solitary waves in a charge varying dusty plasma