Applications of effective field theory methods in nuclear and particle physics