Efficient Earthquake Inversion using the Finite Element Method