Improved peak power method for measuring frequency responses of photodetectors in a self‐heterodyne system