EpiCoDe: Boosting Model Performance Beyond Training with Extrapolation and Contrastive Decoding