Polyakov formulas for conical singularities in two dimensions