Linear Mode Cmos Compatible P-N Junction Avalanche Photodiode For Smart-Lighting Applications