Understanding dark current in pixels of silicon photomultipliers