A fast empirical method for galaxy shape measurements in weak lensing surveys