Methods of determining the absolute branching fractions of $\Lambda_c^+$ baryons and $D_s^+$ mesons at hadron colliders