Supermartingale decomposition with a general index set