Density functional theory study on Ti/h-BN interface in resistance random access memory device