Biocatalysis with undissolved solid substrates and products