Advanced treatment of organic solid waste for anaerobic digestion