A practical introduction to tensor networks: Matrix product states and projected entangled pair states