P-on-N and N-on-P silicon photomultipliers: an in-depth analysis in the continuous wave regime