Hybrid homodyne-like detection scheme with photon-number-resolving detectors