Optimal multi-epoch combination of direct imaging observations for improved exoplanet detection