Living and working in two states can take a heavy toll on your paycheck and give you a headache come tax time. Here's what to know.