Pulsed-laser deposition of MgB2 and B thin films