A general framework of estimating information leakage for privacy and forensics problems with imperfect statistical information