Embedded time of arrival estimation for digital silicon photomultipliers with in-pixel TDCs