Optimal Selection of Good Polynomials and Constructions of Locally Recoverable Codes via Galois Theory