A man has been charged with two criminal offences after allegedly showing a gun to teenage girls on a Belfast-bound train.