Analytical Uncertainty-Based Loss Weighting in Multi-Task Learning