Apparatus for ambient noise cancellation in PPG sensors