Patent (diplomatika)