A multigap resistive plate chamber prototype for time-of-flight for the STAR experiment at RHIC