Impact of Prior Knowledge and Data Correlation on Privacy Leakage: A Unified Analysis