Monotonicity formulas in potential theory