Search for excited quarks in ep collisions at HERA