Line soliton interactions of a nonisospectral and variable-coefficient Kadomtsev–Petviashvili equation