A dual threshold technique to improve the time resolution of resistive plate chambers in streamer mode