Geometric Measure Theory with Applications to Shape Optimization Problems