Scale-by-scale kinetic energy budget near the turbulent/nonturbulent interface