Poincaré-Birkhoff-Witt theorems: homotopical and effective computational methods for universal envelopes