Simple approximations for the error function and its inverse