Computing rotation and self-linking numbers in contact surgery diagrams