Semi-leptonic weak and electromagnetic interactions in nuclei with application to 16O