General free boundary problems for the heat equation with conditions of IV and V type on the fixed boundary