A compact tunable X-ray source based on parametric X-ray generation by moderate energy linacs