Energy driven fault growth in a layered medium