Continuous-variable entanglement measurement using an unbalanced Mach-Zehnder interferometer