Biquadratic interlayer coupling in layered magnetic systems