A semi-analytical method for computing third-body effects on earth's and lunar satellite orbits