Improvement of current leakage in the InAs photodetector by molecular beam epitaxy