Protein tertiary structure prediction and refinement using deep learning