Templated one-step catalytic fabrication of uniform diameter MgxBy nanostructures