Heat Operator Trace Expansions and Index for General Atiyah–Patodi–Singer Boundary Problems