On-chip photocurrent displacement sensor based on a waveguide-coupled nanomechanical photonic crystal cavity