CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Context