The Kondo box: A magnetic impurity in an ultrasmall metallic grain