Katie Boulter earns a hard-fought victory to give Great Britain a 2-1 lead in their Billie Jean King Cup play-off against Sweden.