Child struck by car in Gastonia, officials say