High-visibility interference in a Bell-inequality experiment for energy and time