The critical point equation on Kenmotsu and almost Kenmotsu manifolds