Generation of field-aligned current structures at substorm onsets