Fractal Dimensions for Percolation and Phase Transition Models: Theory and New Monte Carlo Calculation Method